package com.example.spring;

import cn.example.spring.service.StudentService;
import org.example.spring.service.OrderService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:test04
 * Package:com.example.spring
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/10-10:18
 * @Version:v1.0
 */
public class test04 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring5.xml");
        StudentService studentService = applicationContext.getBean("studentService", StudentService.class);
       studentService.deleteStudent();
    }
}
